package com.zy.cat.entity.app;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;

import com.zy.cat.entity.primary.CatDevBeanVideoHistoryPrimary;
import com.zy.cat.entity.primary.CatDevZJInviteIncomeHistoryPrimary;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫用户通过看视频领取金豆记录
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_version", indexes = {
		@Index(name = "vscode", columnList = "vscode"),
		@Index(name = "ctype", columnList = "ctype"),
 		@Index(name = "vsname", columnList = "vsname")})
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫用户看视频领取金豆记录")
public class CatAppVersion {
	
	@Id
	@Column(columnDefinition = "INT(32) NOT NULL COMMENT '客户端升级实体类,版本名ID'")
	@ApiModelProperty(value = "客户端升级实体类,版本名ID", example = "fe53d6a4fa29641")
	private Integer id;
	
	@Column(columnDefinition = "VARCHAR(50) NOT NULL  COMMENT '版本渠道号'")
	@ApiModelProperty(value = "版本渠道号", example = "2019-02-22 12:56:56")
	private String channelid;
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '版本渠道名称'")
	@ApiModelProperty(value = "版本渠道名称", example = "2019-02-22 12:56:56")
	private String chname;
	
	@Column(columnDefinition = "VARCHAR(30) NOT NULL  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '版本更新类型  0.安卓 ,1.IOS'")
	@ApiModelProperty(value = "版本更新类型  0.安卓 ,1.IOS", example = "0")
	private int ctype;
	
	@Column(name = "app_id",columnDefinition = "INT(2) DEFAULT '0' COMMENT '应用ID标识 0.九趣猫、1.淘淘集'")
	@ApiModelProperty(value = "应用ID标识 0.九趣猫、1.淘淘集", example = "0")
	private int appId;
	
	@Column(name = "is_force",columnDefinition = "INT(2) DEFAULT '0' COMMENT '是否强制升级 0.不强制 1.强制'")
	@ApiModelProperty(value = "是否强制升级 0.不强制 1.强制", example = "0")
	private int isForce;
	
	@Column(columnDefinition = "VARCHAR(500) NOT NULL  COMMENT '版本更新说明'")
	@ApiModelProperty(value = "版本更新说明", example = "")
	private String info;
	
	@Column(columnDefinition = "INT(32) NOT NULL  COMMENT '版本号'")
	@ApiModelProperty(value = "版本号", example = "2019-02-22 12:56:56")
	private Integer vscode;
	
	@Column(columnDefinition = "VARCHAR(30) NOT NULL COMMENT '版本名'")
	@ApiModelProperty(value = "版本名", example = "")
	private String vsname;
	
	@Column(columnDefinition = "VARCHAR(300) DEFAULT ''  COMMENT '版本下载地址'")
	@ApiModelProperty(value = "版本下载地址", example = "")
	private String links;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '版本审核状态 -1.审核失败，0.审核中 1.上线'")
	@ApiModelProperty(value = "版本审核状态 -1.审核失败，0.审核中 1.上线", example = "0")
	private int status;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 10:10:10")
	private String ltime;

	public CatAppVersion(String channelid, int ctype, int appId) {
		super();
		this.channelid = channelid;
		this.ctype = ctype;
		this.appId = appId;
	}
}
